package com.mes.dao.zc;

import java.util.List;

import com.mes.entity.zc.CustomerDetails;
import com.mes.entity.zc.Queryzc;

/**
 * 客户增删改查
 * @author zc
 *
 */
public interface CustomerMapper {
	//获取客户列表
	public List<CustomerDetails> selectCustomerDetails(Queryzc queryzc); 
	
	//获取客户总数量
	public int customerCount(Queryzc queryzc);
	
	//通过客户名称查询该客户在数据库中的数量，避免重复
	public int selectCustomerByName(String name);
	
	//添加客户
	public int createCustomer(CustomerDetails customerDetails);
	
	//删除客户
	public int deleteCustomer(String ids);
	
	//导出所有
	public List<CustomerDetails> selectCustomerAll();
	
	//根据id查询客户
	public CustomerDetails selectCustomerByid(long id);
	
	//修改客户
	public int editCustomer(CustomerDetails customerDetails);
	
	//查询客户是否存在于销售表
	public int selectOrder(String ids);
}
